package com.yunkeji.config.keymonitor.config;

import java.util.HashMap;

/**
 * redis 监听工厂类
 *
 * @author 老张
 */
public class RedisListenerFactory {

    private static HashMap<String, RedisListenerStrategy> objMap = new HashMap<>();

    private RedisListenerFactory() {}

    public static void put(String key, RedisListenerStrategy redisListenerStrategy) {
        objMap.put(key, redisListenerStrategy);
    }

    public static RedisListenerStrategy get(String key) {
        RedisListenerStrategy educationalBackground = objMap.get(key);
        return educationalBackground;
    }
}
